package com.gzsxy.esjy.configuration.listener;

import com.gzsxy.esjy.netty.IBootStrapServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;


/**
 *ContextRefreshedEvent > ApplicationRunner > CommandLineRunner > ApplicationReadyEvent 执行顺序
 * @author zhangxiaolong
 * @date 2022/7/6 9:36
 */
public class ApplicationStartListener implements CommandLineRunner {
	
	@Autowired
	private IBootStrapServer nettyServer ;
	


	@Override
	public void run(String... args) throws Exception {
		nettyServer.start();
	}
}
